﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ZDSoft.UPMS.Model.SystemPart;
using ZDSoft.UPMS.Manager.SystemPart;
using ZDSoft.UPMS.Service.SystemPart;
using ZDSoft.UPMS.Model.BusinessPart;

namespace ZDSoft.UPMS.Component.SystemPart
{
    public class UserComponent : ComponentBase<User, UserManager>, IUserService
    {
        public User Login(string account, string password)
        {
            return new UserManager().Login(account, password);
        }
        public IList<User> FindStudent()
        {
            return new UserManager().FindStudent();
        }
        public IList<Organization> findall()
        {
            return new Manager.SystemPart.UserManager().findall();
        }
        public Organization Getone(int id)
        {
            return new Manager.SystemPart.UserManager().Getone(id);
        }
        public IList<Course> GetAllCourse()
        {
            return new Manager.SystemPart.UserManager().GetAllCourse();
        }
    }
}
